/**
 * author: XGP
 * date: 2018/07/25
 * des: 人员招聘-参数设置
 */
import request from '@/utils/request'

/**
 * 查询招聘渠道信息参数
 */
export function getRecruitType(data) {
  return request({
    url: '/parammanages/findAll?flag=recruit',
    method: 'get',
    params: data
  })
}

/**
 * 查询面试题库参数
 */
export function getInterviewProblem(data) {
  return request({
    url: '/parammanages/findAll?flag=recruit',
    method: 'get',
    params: data
  })
}
/**
 * 查询淘汰原因参数
 */
export function getObsolete(data) {
  return request({
    url: '/parammanages/findAll?flag=recruit',
    method: 'get',
    params: data
  })
}

/**
 * 新增保存
 */
export function addParameter(data) {
  return request({
    url: '/parammanages/insert?flag=recruit',
    method: 'post',
    params: data
  })
}

/**
 * 编辑保存
 */
export function editParameter(data) {
  return request({
    url: '/parammanages/update?flag=recruit',
    method: 'put',
    params: data
  })
}

/**
 * 编辑保存
 */
export function deleteParameter(data) {
  return request({
    url: '/parammanages/delete?flag=recruit',
    method: 'delete',
    params: data
  })
}


